package org.jimm.protocol;

import org.jimm.message.PlainMessage;

public interface ProtocolListener {

    abstract void onConnected(Protocol p);

    abstract void onDisconnected(Protocol p);

    abstract void onUpdateConnectingProgress(Protocol p, int percent);

    abstract void onUpdateContacList(Protocol p, Contact c);

    abstract void onUpdateContacList(Protocol p, Group g);

    abstract void onMessage(Protocol p, Contact c, PlainMessage message);

}
